package com.baby.work.domain.proxy;

import java.lang.reflect.Proxy;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        Singer singer = new Singer();
        ISinger singerProxy = (ISinger) Proxy.newProxyInstance(singer.getClass().getClassLoader(),
                singer.getClass().getInterfaces(), new JDKProxySinger(singer));
        singerProxy.sing("xxx");

        Dancer dancer = new Dancer();
        IDancer dancerProxy = (IDancer) Proxy.newProxyInstance(dancer.getClass().getClassLoader(),
                dancer.getClass().getInterfaces(), new JDKProxySinger(dancer));
        dancerProxy.dance();

        ArrayList<Integer> a = new ArrayList<>();

        double ab = 1.23E+2;
        System.out.println(ab);



    }


}
